"""
SSuMMo import hook. Prints GPL copyright string on import and hacks the import
path, in order to make everything in the ssummo package directory directly
importable..

With a slightly more modularised design, this should become unnecessary.

************
Dependencies
************

Make sure that SSuMMo can import the following modules:-

- MySQLdb   (from the python-mysql package)
- Bio   (the python-biopython package)
- hmmer (at least version 3.0 - available http://hmmer.janelia.org/ )


*************
Compatibility
*************

SSUMMO is a package written purely in CPython and has been tested
on Ubuntu & Mac OS X, both running python 2.6.x. & python 2.7.x

IronPython in Windows won't work because it doesn't allow the use of CPython's
built-in 'signal' module. CPython in windows probably won't work either unless
you've got hmmer compiled and installed on Cygwin, as a POSIX subsystem is
required.

"""

__copyright__ = """
SSUMMO Copyright (C) 2011 - 2013. Alex Leach, University of York.

This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details..
"""

#print(__copyright__)

import os
import sys

ssummo_working_directory = os.path.realpath(__file__).rsplit(os.path.sep, 1)[0]
sys.path.insert(0, ssummo_working_directory)
